/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: mac
 * Date: 2022-09-03
 * Time: 9:21
 */
public class LinkedListDemo {
    public static void main(String[] args) {
        DoubleLinkedList doubleLinkedList = new DoubleLinkedList();
        doubleLinkedList.addFirst(2);
        doubleLinkedList.addFirst(2);
        doubleLinkedList.addFirst(2);
        //System.out.println(doubleLinkedList.size());
        //doubleLinkedList.display();
        //System.out.println(doubleLinkedList.contains(1));
        doubleLinkedList.addLast(2);
        doubleLinkedList.addLast(2);
        doubleLinkedList.display();
        doubleLinkedList.removeAllKey(2);
        System.out.println("+++++++++");
        //doubleLinkedList.addIndex(0,99);
        doubleLinkedList.display();
    }
}
